package Sort;

/**
 * @author zhangmin
 * @create 2022-04-18 10:02
 * 排序模板类
 */
public abstract class Sort<T extends Comparable<T>> {
    public abstract void sort(T[] nums);

    protected boolean less(T v,T w){
        return v.compareTo(w)<0;
    }
    protected void swap(T[] a, int i,int j){
        T t=a[i];
        a[i]=a[j];
        a[j]=t;
    }
}
